package io;
//version 1.0
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class TimeTableOutput
{
	public static void outputTimetable(String outputLine) throws IOException
	{
		FileWriter outputFile = null;
		
	    // Create file 
	    outputFile = new FileWriter("Timetable.txt",true);
	    
	    //write the timetable to the file
	    BufferedWriter fileWriter = new BufferedWriter(outputFile);
	    
	    fileWriter.newLine();
	    
	    fileWriter.write(outputLine);
	
	    //Close the output stream
	    fileWriter.close();

	    

	    //Close the output stream
	    
	    outputFile.close();
	    
	}

}
